<style scoped src="./index.scss" lang="scss" rel="stylesheet/scss"></style>
<template src="./index.html"></template>
<script>
import wechatBox from "../wechat/index";
import weappBox from "../weapp/index";
import webBox from "../h5/index";
import offlineBox from "../offline/index"
import collectPayBox from "../collectPay/index";
export default {
  mixins: [Vue.prototype.$vFN.Mixins.Base],
  components: { wechatBox,weappBox,webBox,offlineBox,collectPayBox},
  data() {
    return {
      activeName: "",
    };
  },
  methods: {
    // 加参数
    tabClick() {
      this.$router.push(
        this.$vFN.Tools.toUrl({
          path: "./collection",
          query: {
            type: this.activeName,
          },
        })
      );
    },

    init() {

      if (this.$route.query.type) {
        this.activeName = this.$route.query.type;
      } else {
        this.activeName = "default";
      }

    },
  },
  mounted() {
    this.init();
    this.$nextTick(function () {});
  },
  activated() {},
};
</script>